UCF STIG Viewer Logo
Changes are coming to https://stigviewer.com. Take our survey to help us understand your usage and how we can better serve you in the future.
Take Survey

All local initialization files must have mode 0740 or less permissive.


Overview

Finding ID Version Rule ID IA Controls Severity
V-905 GEN001880 SV-37431r1_rule ECLP-1 Medium
Description
Local initialization files are used to configure the user's shell environment upon login. Malicious modification of these files could compromise accounts upon logon.
STIG Date
Red Hat Enterprise Linux 5 Security Technical Implementation Guide 2012-05-25

Details

Check Text ( C-36108r1_chk )
Check the modes of local initialization files.

Procedure:
# ls -al //.bashrc
# ls -al //.bash_login
# ls -al //.bash_logout
# ls -al //.bash_profile
# ls -al //.cshrc
# ls -al //.kshrc
# ls -al //.login
# ls -al //.logout
# ls -al //.profile
# ls -al //.tcshrc
# ls -al //.env
# ls -al //.dtprofile (permissions should be 0755)
# ls -al //.dispatch
# ls -al //.emacs
# ls -al //.exrc
# find //.dt ! -fstype nfs \( -perm -0002 -o -perm -0020 \) -exec ls -ld {} \; (permissions not to be more
permissive than 0755)

If local initialization files are more permissive than 0740 or the .dt directory is more permissive than 0755 or the .dtprofile file is more permissive than 0755, this is a finding.
Fix Text (F-31202r1_fix)
Ensure user startup files have permissions of 0740 or more restrictive. Examine each user's home directory and verify all file names beginning with "." have access permissions of 0740 or more restrictive. If they do not, use the chmod command to correct the vulnerability.

Procedure:
# chmod 0740 .filename

Note: The period is part of the file name and is required.